/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sistemperpustakaan.entity;

/**
 *
 * @author EKo
 */
public class Bahasa {
    int id;
    String bahasa;
    Object object;
    public Bahasa() {
    }

    public Bahasa(int id, String bahasa) {
        this.id = id;
        this.bahasa = bahasa;
    }
public Object getObject(int index) {
        switch(index){
            case 0: return id;
            case 1: return bahasa;
            default:return null;
        }
    }
    public String getBahasa() {
        return bahasa;
    }

    public void setBahasa(String bahasa) {
        this.bahasa = bahasa;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

}
